package com.eurabia.eggchat.enums;

import lombok.Getter;

/**
 * 登录枚举类
 */
@Getter
public enum LoginEnum implements CodeEnum{

    //登录code和信息
    LOGIN_SUCCESS(0,"登录成功"),
    LOGIN_FAIL(1,"登录失败"),
    LOGIN_MANY_USER(2,"账号重复"),
    LOGINOUT_SUCCESS(3,"退出成功"),
    REGIST_SUCCESS(100,"注册成功"),
    REGIST_FAIL(101,"注册失败"),
    REGIST_USERNAME_EXIST(102,"用户名已被占用，请重新填写靓名"),
    //更新密码code和信息
    RESULT_SUCCESS(210,"更新密码成功"),
    RESULT_FAIL(211,"更新密码失败"),
    NO_USER_EXIST(212,"用户不存在"),
    ;

    private Integer code;

    private String message;

    LoginEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
